package com.example.multilevelapprovalback.controller;

import com.example.multilevelapprovalback.pojo.Result;
import com.example.multilevelapprovalback.service.AchievementLevelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AchievementLevelController {

    @Autowired
    //获取成果级别
    private AchievementLevelService achievementLevelService;


    @GetMapping("/achievement-level")
    public Result get() {
        Object result = achievementLevelService.get();
        return Result.success(result);
    }
}
